<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>我的积分</title>
    <link rel="stylesheet" href="__PUBLIC__/Home/css/personCenter/personInte.css">
  </head>
  <body>
    <div class="myinte">
      <!-- 我的积分开始 -->
      <p class="mytitle">我的积分</p>
      <div class="mybox">
        <p class="box1">我的积分信息</p>
        <p class="box2">
          你已经拥有的积分是:
          <b class="blue">{$dlist.integral}</b>
          积分
          <b class="blue">( &yen; {$dlist.value} )</b>
        </p>
        <p class="line"></p>
        <p class="box1">当前兑换比例</p>
        <p class="box2">每50 积分可兑换 &yen;5.00. 每消费 &yen;1.00 将能获得 1 积分.</p>
        <p class="box2">获取的积分将在60天后到期 参考积分历史记录，查看积分是否过期，和过期时间</p>
      </div>
      <!-- 我的积分结束 -->
      <!-- 我的积分历史开始 -->
      <p class="mytitle">积分历史</p>
      <table id="myhistory">
        <tr style="height:42px;">
          <th class="consumption">当前积分</th>
          <th class="integral" style="width:200px;">积分历史</th>
          <th class="resson">原因</th>
          <th class="time">时间</th>
        </tr>
        <foreach name="list" item="val">
        <tr style="height:60px;">
          <td class="consumption">{$val.integral}</td>
          <td class="integral">{$val.payfor}</td>
          <td class="resson">{$val.type}</td>
          <td class="time">{$val.ctime}</td>
        </tr>
        </foreach>
      </table>
      <div>{$show}</div>
    </div>
  </body>
  <script type="text/javascript">
      window.onload = function(){
        var mywidth=document.body.scrollHeight;
        console.log(mywidth);
        top.document.getElementById('show').innerHTML = mywidth;
        top.back();
      };
  </script>
</html>
